﻿<%@ Page Language="C#" MasterPageFile="~/Home/Home.master" %>
<%@ Register src="../module/Product-Shopping-Cart-List-Home.ascx" tagname="ShoppingCart" tagprefix="inal" %>
<%@ Register src="../module/Agents-List-Select.ascx" tagname="Agents" tagprefix="inal" %>
<%@ Register Src="../module/Advertisement-Home.ascx" TagName="Advertisement" TagPrefix="inal" %>

<script runat="server">
    private string Bill_Inquiry_Id;
    private ArrayList Shopping_Cart_List;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Shopping_Cart_List"] != null)
        {
            Random randon = new Random();
            int randon_number=randon.Next(1,1000);
            Bill_Inquiry_Id = randon_number.ToString("000") + DateTime.Now.ToString("yyyyMMddHHmmssfff");
            Shopping_Cart_List = (ArrayList)Session["Shopping_Cart_List"];
            Shopping_List.Shopping_Cart_List = Shopping_Cart_List;

        }
    }
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="../static/lang/<%=Utils.GetLangId() %>.js"></script>
    <!--JavaScript，订购页面需要加载（如果包含[module]Shopping-Cart-Home可以不单独加载）-->
    <script type="text/javascript" src="../static/js/Buy.js"></script>
    <script type="text/javascript" src="../static/js/Verification.js"></script>
    <link href="../Pulgin/artDialog/skins/default.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../pulgin/artDialog/artDialog.min.js"></script>    <script type="text/javascript" src="../static/js/js.Home.js"></script>
    <!--语言包加载-->
    <%if(Utils.GetQueryString("lang",1)<100){ %>
    <script src="../static/js/bedit.js" type="text/javascript"></script>
    <script type="text/javascript">
        attachAll = false;
        bedit_allow = "User_Name:User_Address";
    </script>
    <% }%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <!-- 幻灯片首席图片 -->
    <inal:Advertisement runat="server" Cid="108" />
    <div class="ch"></div>
    <div class="layout" id="Product_Shopping_Item_List_Title"><h2><%=Lang.Show("ShoppingCart") %></h2></div>
    <div class="layout" id="Product_Shopping_Item_List"><inal:ShoppingCart ID="Shopping_List" runat="server" /></div>
    <div class="layout">
        <div id="User_Info">
            <table>
                <tr>
                    <td><%=Lang.Show("BillInquiryId") %> :</td>
                    <td><input type="text" class="en tc" id="Bill_Inquiry_Id" disabled="disabled" value="<%=Bill_Inquiry_Id %>" /> </td>
                    <td></td>
                </tr>
                <tr>
                    <td><%=Lang.Show("UserName") %> :</td>
                    <td><input type="text" id="User_Name" name="User_Name" /></td>
                    <td></td>
                </tr>
                <tr>
                    <td><%=Lang.Show("UserPhone") %> <i>(*)</i> : </td>
                    <td><input type="tel" id="User_Phone" class="en tc" /></td>
                    <td><div id="Validate-User_Phone"></div></td>
                </tr>
                <tr>
                    <td><%=Lang.Show("Address") %> :</td>
                    <td colspan="2"><textarea id="User_Address" name="User_Address" rows="1"></textarea></td>
                </tr>
                <tr>
                    <td><%=Lang.Show("SendShops") %> :</td>
                    <td><inal:Agents runat="server" /></td>
                    <td><div id="Validate-Agents"></div></td>
                </tr>
                <tr>
                    <td><%=Lang.Show("ValidateCode") %> :</td>
                    <td><input type="text" id="VerificationImgCode" /><img id="ImgCode" src="../ajax/VerificationImgCode.ashx" /></td>
                    <td><div id="Validate-VerificationImgCode"></div></td>
                </tr>
                <tr>
                    <td></td>
                    <td><button onclick="Submit_Pay('<%=Bill_Inquiry_Id %>')"><%=Lang.Show("Submit") %></button></td>
                    <td></td>
                </tr>
            </table>
        </div>
    </div>
    <script type="text/javascript">
        ImgCodeShow();
    </script>
</asp:Content>

